/** 
 * Description:商品品牌
 * Date:2013-1-9
 * Author:Along	
*/
package com.community.shopping.service.logic;
import java.util.List;
import com.community.shopping.dao.GoodsBrandDao;
import com.community.shopping.domain.GoodsBrand;
public class GoodsBrandManager {
	
	public GoodsBrandDao goodsBrandDao;

	/**
	 * @param goodsBrandDao the goodsBrandDao to set
	 */
	public void setGoodsBrandDao(GoodsBrandDao goodsBrandDao) {
		this.goodsBrandDao = goodsBrandDao;
	}
	public GoodsBrand getGoodsBrand(Integer id){
		return goodsBrandDao.getGoodsBrand(id);
	}
	
	public void save(GoodsBrand goodsBrand){
		goodsBrandDao.save(goodsBrand);
	}

	public void delete(GoodsBrand goodsBrand){		  
		goodsBrandDao.delete(goodsBrand);
	}
	
	public List<GoodsBrand> getGoodsBrands(Integer shopId,Page page) {  		
		 return goodsBrandDao.getGoodsBrand(shopId,page);
		 }
	
	public List<GoodsBrand> getGoodsBrandByType(Integer id){  		
		 return goodsBrandDao.getGoodsBrand(" goodsType.id="+id+" order by sort");
		 }
	
	public List<GoodsBrand> getGoodsBrand(String sql,Page page) {  		
		 return goodsBrandDao.getGoodsBrand(sql,page);
		 }


		

}
